<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--<c:set var="ctx"  value="${pageContext.request.scheme}://${pageContext.request.serverName}:${pageContext.request.serverPort}${pageContext.request.contextPath}" />--%>
<!-- 或者下面的方式 -->
<%--<%--%>
    <%--String path = request.getContextPath();--%>
    <%--String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";--%>
<%--%>--%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta charset="utf-8" />
    <title>航空管理系统[专家版]</title>
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" />
    <c:set var="ctx" value="${pageContext.request.contextPath}"/>
    <link type="text/css" rel="stylesheet" href="${ctx}/static/css/style.css" />
    <link type="text/css" rel="stylesheet" href="${ctx}/static/css/public.css" />
    <link type="text/css" rel="stylesheet" href="${ctx}/static/css/bglogin.css" />
    <script type="text/javascript" src="${ctx}/static/plugins/jquery/jquery-1.11.3.min.js"></script>
</head>
<body id="loginPage">
<form id="loginForm" action="${ctx}/login" method="post">
    <div class="loginBox">
        <div class="leftBox">
            <%--<div class="loginLogo"></div>--%>
            <h3>航空管理系统</h3>
            <div class="login_main_errortip" style="margin-left:75px;margin-top:10px;color:red;"></div>
            <div class="regBox">
                <input type="text" class="inputText"  id="username" name="name" autocomplete="off" value="" placeholder="用户名"/>
                <p class="tipsWord right"></p>
                <input type="password" class="inputPassport" id="password" name="password" autocomplete="off" value="" placeholder="密码"/>
                <p class="tipsWord"></p>
                <input class="ibtnentercssclass"
                       style="border-top-width: 0px; border-left-width: 0px; border-bottom-width: 0px; border-right-width: 0px"
                       type=image src="${ctx}/static/images/loginImg/btn.jpg">
                </input>
                <p class="tipsWord"></p>
                <input type="hidden" class="inputText" ><span id="errorTip" name="errorTip"></span></input>
            </div>
        </div>
    </div>
</form>
<script type="text/javascript">
    $("#errorTip").html('${msg}');
</script>
</body>
</html>
